﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace ToolsApplication
{
    internal class GetWsdl
    {
        public string GetWsdlAsString(string url)
        {
            WebClient wc = new WebClient();
            StreamReader fileIn = new StreamReader(
                wc.OpenRead(url));

            string strWsdlData = fileIn.ReadToEnd();
            fileIn.Close();

            return strWsdlData;
        }
    }
}